/*
 * Copyright (c) 2010-2011 GOV.
 * [Id:UserSessionBean.java  11-9-9 AM11:40 poplar.mumu ]
 */
package org.mumu.pawn.beans.common;

import org.mumu.pawn.model.Account;
import org.mumu.pawn.model.PanelMenu;

import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import java.io.Serializable;
import java.util.List;

/**
 * 用户Session内容管理.
 * <br/>
 *
 * @author poplar.mumu
 * @version 1.0 11-9-9 AM11:40
 * @since JDK 1.5
 */
@Named("accountSession")
@SessionScoped
public class AccountSessionBean implements Serializable {
    private static final long serialVersionUID = 4022599229445470636L;
    /**
     * 用户信息.
     */
    private Account account;

    /**
     * 用户模块
     */
    private List<PanelMenu> menus;

    public List<PanelMenu> getMenus() {
        return menus;
    }

    public void setMenus(List<PanelMenu> menus) {
        this.menus = menus;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }
}
